#include "frm_exit.h"
#include "ui_frm_exit.h"
#include <QDesktopWidget>

frm_exit::frm_exit(QDialog *parent) :
    QDialog(parent),
    ui(new Ui::frm_exit)
{
    ui->setupUi(this);
    setWindowFlags( Qt:: WindowTitleHint | Qt:: CustomizeWindowHint | Qt:: WindowMinimizeButtonHint | Qt:: WindowMaximizeButtonHint);
    this->move(QApplication::desktop()->screen()->rect().center() - this->rect().center());
}

frm_exit::~frm_exit()
{
    delete ui;
}

void frm_exit::on_cmdYes_clicked()
{
    this->accept();
}

void frm_exit::on_cmdNo_clicked()
{
    this->reject();
}
